ObjectDB Database Search

51-100 of 200 results

Getting Foreign Key

can get line level primary key but i also nead to get foreign key which is belongs to header ... this i got pojo name query.getPrimaryKey() by using this i can get primary key now i nead ... How to get Foreign key using  org.eclipse.persistence.queries.WriteObjectQuery class

Activation key causes database to not start

. We still cannot start ObjectDB if we add the activation key in objectdb.conf. This is the ObjectDB log ... .java:62) CK1000 Casper Kold Lund Unfortunately it seems that a wrong license key (for ObjectDB 1.x rather than for ObjectDB 2.x) was sent to you. Sorry about that. A new license key was sent to you now

Unexpected query token 'KEY'

.customProperties cp WHERE KEY (cp) = :propertyName AND VALUE(cp) = :propertyValue ORDER BY td.createdTimeMillis I get the "Unexpected query token ' KEY '" error. Is there another way to do this and I am just using ... with a collection of embedded objects. This will also enable defining indexes on the keys /values

Index on map key

Is there a way to create an Index with @Index on the key of a map? wua Andreas Wurm Indexes on map keys as well as queries on map keys are currently not supported. But as a workaround you can use a collection of embedded objects, as demonstrated below: package test; import java.util.*; import

Error opening database with ObjectDB Explorer when using composite key

Hi, When I use a composite key in an entity and fill this database with this entity, ObjectDB explorer throws me an error when opening this database saying something about an invalid ID class ... has been attached to this ticket. The code itself looks like this:   KEY : public class PersonId

ObjectDB JDO - foreign key constraints

Hi, I am new to both JDO and ObjectDB, and am struggeling to figure out how to define foreign key relationships. For instance, I have create two classes: @Entity public class Person implements ... ; Any help appreciated! ralfne Ralf Stefan Neumann ObjectDB doesn't enforce foreign key constraints

retrieve without key?

. i'm loading data from an external source. i use keys from that source. since i have a singleton i ... and can't see an option to retrieve an object w/o using a key . can this be done? duetto john cummings You can use a single result query . support Support

jakarta.persistence.TableGenerator.pkColumnValue

Jakarta Persistence (JPA) Method in jakarta.persistence.TableGenerator String pkColumnValue (Optional) The primary key value in the generator table that distinguishes this set of generated values ... the primary key column of the generator table Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TableGenerator.indexes

Jakarta Persistence (JPA) Method in jakarta.persistence.TableGenerator Index[] indexes (Optional) Indexes for the table. These are only used if table generation is in effect. Note that it is not necessary to specify an index for a primary key , as the primary key index is created automatically. Default: {} Since: Jakarta Persistence (JPA) 2.1

jakarta.persistence.Table.indexes

Jakarta Persistence (JPA) Method in jakarta.persistence.Table Index[] indexes (Optional) Indexes for the table. These are only used if table generation is in effect. Note that it is not necessary to specify an index for a primary key , as the primary key index is created automatically. Default: {} Since: Jakarta Persistence (JPA) 2.1

jakarta.persistence.GeneratedValue.strategy

Jakarta Persistence (JPA) Method in jakarta.persistence.GeneratedValue GenerationType strategy (Optional) The primary key generation strategy that the persistence provider must use to generate the annotated entity primary key . Default: AUTO Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.GenerationType.TABLE

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.GenerationType TABLE Indicates that the persistence provider must assign primary keys for the entity using an underlying database table to ensure uniqueness. May be used to generate primary keys of type Long , Integer , long , or int . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.GenerationType.SEQUENCE

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.GenerationType SEQUENCE Indicates that the persistence provider must assign primary keys for the entity using a database sequence. May be used to generate primary keys of type Long , Integer , long , or int . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.GenerationType.IDENTITY

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.GenerationType IDENTITY Indicates that the persistence provider must assign primary keys for the entity using a database identity column. May be used to generate primary keys of type Long , Integer , long , or int . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.GenerationType.UUID

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.GenerationType UUID Indicates that the persistence provider must assign primary keys for the entity by generating an RFC 4122 Universally Unique IDentifier. May be used to generate primary keys of type UUID or String . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.GenerationType.AUTO

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.GenerationType AUTO Indicates that the persistence provider should pick an appropriate strategy for the particular database. For a primary key of type UUID or String , this is equivalent to GenerationType.UUID . For a primary key

jakarta.persistence.PostPersist

class. Any generated primary key value is available when this callback occurs. Since: Jakarta

jakarta.persistence.ConstructorResult

constructor results will be in either the new or detached state, depending on whether a primary key

jakarta.persistence.MapKeyColumn.unique

) Whether the column is a unique key . This is a shortcut for the UniqueConstraint annotation at the table level and is useful for when the unique key constraint corresponds to only a single column. This constraint applies in addition to any constraint entailed by primary key mapping and to constraints

jakarta.persistence.Convert

to the keys or values of the map, or to the specified attribute of the embeddable instances contained ... to specify conversion of a map key or value, " key " or "value" , respectively, must be used as the value of the attributeName element to specify that it is the map key or map value that is converted

jakarta.persistence.ForeignKey

: Annotation Specifies the handling of foreign key constraints when schema generation is in effect. If this annotation is not specified, a default foreign key strategy is selected by the persistence provider. The ConstraintMode value is used to specify whether foreign key constraints

jakarta.persistence.Cache.evict(Class,Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.Cache void evict (    Class cls ,    Object primaryKey ) Remove the data for the given entity from the cache. Parameters: cls - entity class primaryKey - primary key Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TableGenerator.pkColumnName

Jakarta Persistence (JPA) Method in jakarta.persistence.TableGenerator String pkColumnName (Optional) Name of the primary key column in the table. Defaults to a provider-chosen name. Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TableGenerator.uniqueConstraints

Jakarta Persistence (JPA) Method in jakarta.persistence.TableGenerator UniqueConstraint[] uniqueConstraints (Optional) Unique constraints that are to be placed on the table. These are only used if table generation is in effect. These constraints apply in addition to primary key constraints

jakarta.persistence.TableGenerator.name

Jakarta Persistence (JPA) Method in jakarta.persistence.TableGenerator String name (optional) A unique generator name that can be referenced by one or more classes to be the generator for id values. Defaults to the name of the entity when the annotation occurs on an entity class or primary key

jakarta.persistence.Table.uniqueConstraints

and JoinColumn annotations and constraints entailed by primary key mappings. Defaults to no additional

jakarta.persistence.IdClass.value

Jakarta Persistence (JPA) Method in jakarta.persistence.IdClass Class value The primary key class, which must declare fields or properties with names and types that match the Id fields and properties of the annotated entity class. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.GeneratedValue.generator

Jakarta Persistence (JPA) Method in jakarta.persistence.GeneratedValue String generator (Optional) The name of the primary key generator to use, as specified by the SequenceGenerator or TableGenerator annotation which declares the generator. The name defaults to the entity name of the entity in

jakarta.persistence.OrderBy.value

. If the ordering element is not specified, ordering by the primary key of the associated entity is assumed. Default: "" Since: Jakarta Persistence (JPA) 1.0

SELECT clause (JPQL / Criteria API)

The ability to retrieve managed entities is a key advantage of JPQL. For example, the following query returns Country objects, which then become managed by the EntityManager instance em : TypedQuery query = em. createQuery ("SELECT c FROM Country c", Country.class); List results = query

FROM clause (JPQL / Criteria API)

, FETCH,FROM, GROUP, HAVING, IN, INDEX, INNER, IS, JOIN, KEY , LEADING, LEFT, LENGTH, LIKE,LOCATE

JPA Metamodel Attributes

access. Represents an attribute typed as a java.util.Map , managing both keys and values

JPA Query Structure (JPQL / Criteria)

The syntax of the Jakarta Persistence Query Language (JPQL) is similar to SQL. This is a key advantage because SQL is a powerful query language, and many developers are already familiar with it. The main difference between SQL and JPQL is that SQL operates on relational database tables, while JPQL

Database Schema Evolution

other map type, as long as the keys and values are convertible (for example, from HashMap to TreeMap ). Any

jakarta.persistence.Graph

Subgraph addKeySubgraph ( Attribute attribute ) Add a node to the graph that corresponds to a map key ... related managed types. Parameters: attribute - attribute Returns: subgraph for the key attribute. Throws ... a node to the graph that corresponds to a map key that is a managed type with inheritance. This allows

jakarta.persistence.EntityGraph

( Attribute attribute ) Add a node to the graph that corresponds to a map key that is a managed type ... . Inherited from Graph Parameters: attribute - attribute Returns: subgraph for the key attribute. Throws ... a node to the graph that corresponds to a map key that is a managed type with inheritance

jakarta.persistence.AssociationOverride

mapping is a foreign key mapping, the joinColumns element is used. If the relationship mapping uses a join ... mapping overridden to ADDR_ID foreign key public class PartTimeEmployee extends Employee ... must be specified if a foreign key mapping is used in the overriding of the mapping

jakarta.persistence.metamodel.IdentifiableType

that corresponds to the specified name and Java key and value types. Inherited from ManagedType Parameters: name - the name of the represented attribute keyType - the key type of the represented attribute ... name and key and value types. Throws: IllegalArgumentException - if attribute of the given name

jakarta.persistence.metamodel.EntityType

attribute declared by the managed type that corresponds to the specified name and Java key and value ... - the key type of the represented attribute valueType - the value type of the represented attribute Returns: declared MapAttribute of the given name and key and value types. Throws

jakarta.persistence.metamodel.ManagedType

attribute declared by the managed type that corresponds to the specified name and Java key and value types. Parameters: name - the name of the represented attribute keyType - the key type ... MapAttribute of the given name and key and value types. Throws: IllegalArgumentException - if attribute

jakarta.persistence.metamodel.EmbeddableType

type that corresponds to the specified name and Java key and value types. Inherited from ManagedType Parameters: name - the name of the represented attribute keyType - the key type of the represented ... of the given name and key and value types. Throws: IllegalArgumentException - if attribute of the given

jakarta.persistence.metamodel.MappedSuperclassType

declared by the managed type that corresponds to the specified name and Java key and value types. Inherited from ManagedType Parameters: name - the name of the represented attribute keyType - the key ... : declared MapAttribute of the given name and key and value types. Throws: IllegalArgumentException

jakarta.persistence.MapKeyJoinColumns

Interfaces: Annotation Target: Method, Field Supports composite map keys that reference entities ... (JPA) 2.0 Annotation Elements MapKeyJoinColumn[] value (Required) The map key join columns that are used to map to the entity that is the map key . Since: Jakarta Persistence (JPA) 1.0 ForeignKey

jakarta.persistence.metamodel.MapAttribute

of the key of the represented Map Super Interfaces: PluralAttribute , Attribute , Bindable Instances ... . Since: Jakarta Persistence (JPA) 1.0 Class getKeyJavaType () Return the Java type of the map key . Returns: Java key type. Since: Jakarta Persistence (JPA) 1.0 Type getKeyType () Return the type

jakarta.persistence.MapKeyColumn.name

) The name of the map key column. The table in which it is found depends upon the context. If the map key is for an element collection, the map key column is in the collection table for the map value. If the map key is for a ManyToMany entity relationship or for a OneToMany entity relationship using a join

Eager Fetch of Map with Entities as Keys

Loading eagerly a map that uses entity objects as keys is currently unsupported, if the equals and hashCode methods of the keys are based on the key entity persistent content, since that content ... ;   MyKeyEntity key = new MyKeyEntity(" key ");         em

JPA Composite Key make Object Db throws "Unexpected exception (Error 990)"

Hello Object Db community :) I am using this wonderful library and I caught a strange exception while testing the "composite key " feature in JPA. Let's see what I am doing : @Entity public class ... be reproduced with a simple ( not embedded Id ) key with an enum type. Here is the code : package test

Page #9 entry 0 (key 'bjjl') has 75 extra bytes / Unexpected last index ID: -119 (expected -116)

------------------- [1] Page #9 entry 0 has unexpected object format [2] Page #9 entry 0 ( key 'bjjl') has 75 ... ] Page #3 entry 0 has unexpected object format [2] Page #3 entry 0 ( key 'guest') has 11 extra bytes

jakarta.persistence.JoinColumns

: Annotation Target: Method, Field Specifies the mapping for composite foreign keys . This annotation ... the generation of a foreign key constraint when table generation is in effect. If both this element ... . If no foreign key annotation element is specified in either location, a default foreign key strategy

jakarta.persistence.NamedAttributeNode

) If the attribute references a Map type, this element can be used to specify a subgraph for the Key in the case of an Entity key type. A keySubgraph can not be specified without the Map attribute ... subclass subgraphs. The value of this element is the name of the key subgraph as specified by